﻿@page
@model GoodToCode.Entity.Event.DeleteModel

@using GoodToCode.Entity.Event

@{
    ViewData["Title"] = "Delete";
}

<h1>Delete</h1>

<h3>Are you sure you want to delete this?</h3>
<div>
    <h4>Movie</h4>
    <hr />
    <dl class="row">
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Event.Name)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Event.Name)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Event.Description)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Event.Description)
        </dd>       
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Event.Slogan)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Event.Slogan)
        </dd>
    </dl>

    <form method="post">
        <input type="hidden" asp-for="Event.Key" />
        <input type="submit" value="Delete" class="btn btn-danger" /> |
        <a asp-page="./Index">Back to List</a>
    </form>
    <div class="row">
        <div class="col-xs-offset-1 col-xs-10">
            @if (!ViewData.ModelState.IsValid)
            {
                @Html.ValidationSummary(false, DeleteModel.ValidationSummaryMessage, new { @class = "text-danger" })
            }
            else
            {
                <p class="text-info">@TempData[DeleteModel.ResultMessage]</p>
            }
        </div>
    </div>
</div>


